import request from '@/utils/request'

// plus订单列表
export function plusOrderList(query) {
  return request({
    url: 'plus/order',
    method: 'get',
    params: query
  })
}
// plus会员卡订单详情
export function plusOrderInfo(id) {
  return request({
    url: `plus/order/${id}`,
    method: 'get',
    data: id
  })
}
// 会员卡导出
export function plusOrderExpor(query) {
  return request({
    url: 'plus/order/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
// 服务订单导出
export function severOrderExpor(query) {
  return request({
    url: 'service_order_export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
// 服务订单列表
export function orderList(query) {
  return request({
    url: 'service_order_list',
    method: 'get',
    params: query,
  })
}
// 服务订单详情
export function orderInfo(id) {
  return request({
    url: 'service_order_detail',
    method: 'post',
    data: id,
  })
}

